package com.yelobblog.yelobblog.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

//id BIGINT AUTO_INCREMENT PRIMARY KEY,
//userId BIGINT NOT NULL,
//title VARCHAR(255) NOT NULL,
//content TEXT NOT NULL,
//createTime TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
@Data
@AllArgsConstructor
@NoArgsConstructor
public class logs {
    private Integer id;
    private Integer userId;
    private String title;
    private String content;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

}
